package cn.tedu.csmall.product.mapper;

import cn.tedu.csmall.product.pojo.entity.Album;
import cn.tedu.csmall.product.pojo.vo.AlbumListItemVo;
import cn.tedu.csmall.product.pojo.vo.AlbumStandardVo;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface AlbumMapper {

    int insert(Album album);

    int deleteById(Long id);

//    int deleteByIds(Long[] ids);
    int deleteByIds(Long[] ids);

    int insertBatch(List<Album> albums);

    int update(Album album);

    int count();

    AlbumStandardVo getStandardById(long id);

    int countByName(String name);

    List<AlbumListItemVo> list();

    int countByNameAndNotId(String name,Long id);


}
